using Godot;
using System;

public partial class EnemyBeAttackArea : Area2D
{
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		BodyShapeEntered += OnCollisionEnterBeAttackArea;
		BodyShapeExited += OnCollisionExitBeAttackArea;
	}

	private void OnCollisionExitBeAttackArea(Rid bodyRid, Node2D body, long bodyShapeIndex, long localShapeIndex)
	{

	}


	private void OnCollisionEnterBeAttackArea(Rid bodyRid, Node2D body, long bodyShapeIndex, long localShapeIndex)
	{
		GD.Print("欧，我被打了，啦啦啦", body.Name);
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
}
